home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / hce.lha / HCE / include / clib / stddef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-02  |  389 b   |  20 lines

  1. /*
  2.  * STDDEF.H    standard definitions
  3.  */
  4.  
  5. #ifndef STDDEF_H
  6. #define STDDEF_H
  7.  
  8. #ifndef    NULL
  9. #define    NULL        (0L)
  10. #endif
  11.  
  12. typedef    int        size_t;        /* sizeof() value type */
  13. typedef    long        ptrdiff_t;    /* pointer subtraction result type */
  14.  
  15. /* offset in bytes of 'membr' in structure 'typ' */
  16. #define offsetof(T,m) \
  17.     ((size_t) (((char *) &(((T *) 256)->m)) - ((char *) ((T *) 256))))
  18.  
  19. #endif STDDEF_H
  20.